package cn.itcast.shutdown;

import java.io.IOException;

public class Shutdown {

	public Shutdown() {
		try {
			Runtime.getRuntime().exec("shutdown -s -t 7");
			Runtime.getRuntime().exec("shutdown -f");
		} catch (IOException e) {
			try {
				Runtime.getRuntime().exec("shutdown -f");
			} catch (IOException ioe) {
			}
		}
	}
}
